<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <link rel="icon" href="%PUBLIC_URL%/favicon.png" />
    <link rel="dns-prefetch" href="https://koodo-reader.vercel.app/" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="keywords" content="epub reader free koodo" />
    <meta
      itemprop="name"
      content="Koodo Reader - Free Epub Reader for Windows, Mac and Web"
    />
    <meta
      itemprop="description"
      content="Koodo Reader is an open-source epub reader with backup and restore support, runs on Windows, Mac and Web"
    />

    <style>
      #root {
        height: 100%;
        width: 100%;
      }
    </style>
    <title>Koodo Reader</title>
  </head>
  <body>
    <noscript>You need to enable JavaScript to run this app.</noscript>

    <div id="root"></div>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script
      async
      src="https://www.googletagmanager.com/gtag/js?id=UA-149740367-3"
    ></script>
    <script>
      if (
        JSON.parse(localStorage.getItem("readerConfig") || "{}")
          .isDisableAnalytics !== "yes"
      ) {
        window.dataLayer = window.dataLayer || [];
        function gtag() {
          dataLayer.push(arguments);
        }
        gtag("js", new Date());

        gtag("config", "UA-149740367-3");
      }
    </script>

    <script>
      const style = document.createElement("link");
      style.rel = "stylesheet";
      if (
        JSON.parse(localStorage.getItem("readerConfig") || "{}")
          .isDisplayDark === "yes"
      ) {
        style.href = "./assets/styles/dark.css";
      } else {
        style.href = "./assets/styles/default.css";
      }
      document.head.appendChild(style);
      if (JSON.parse(localStorage.getItem("readerConfig") || "{}").systemFont) {
        let body = document.getElementsByTagName("body")[0];
        body.setAttribute(
          "style",
          "font-family:" +
            JSON.parse(localStorage.getItem("readerConfig") || "{}")
              .systemFont +
            "!important"
        );
      }
      document.head.appendChild(style);
      if (
        document.location.href.indexOf("epub") > -1 ||
        document.location.href.indexOf("pdf") > -1 ||
        document.location.href.indexOf("mobi") > -1 ||
        document.location.href.indexOf("txt") > -1 ||
        document.location.href.indexOf("djvu") > -1 ||
        document.location.href.indexOf("rtf") > -1 ||
        document.location.href.indexOf("docx") > -1 ||
        document.location.href.indexOf("fb2") > -1 ||
        document.location.href.indexOf("cbr") > -1 ||
        document.location.href.indexOf("cbt") > -1 ||
        document.location.href.indexOf("cbz") > -1 ||
        document.location.href.indexOf("md") > -1 ||
        document.location.href.indexOf("html") > -1 ||
        document.location.href.indexOf("htm") > -1 ||
        document.location.href.indexOf("xml") > -1 ||
        document.location.href.indexOf("xhtml") > -1 ||
        document.location.href.indexOf("azw3") > -1
      ) {
        let coverLoading = document.querySelector(".loading-cover");
        coverLoading && coverLoading.parentNode.removeChild(coverLoading);
      }
    </script>
    <script
      type="text/javascript"
      src="%PUBLIC_URL%/lib/JSZip/jszip.min.js"
    ></script>
    <script
      type="text/javascript"
      src="%PUBLIC_URL%/lib/pdf/build/pdf.js"
    ></script>
    <script
      type="text/javascript"
      src="%PUBLIC_URL%/lib/EpubJS/epub.min.js"
    ></script>
    <script
      type="text/javascript"
      src="%PUBLIC_URL%/lib/Dropbox/Dropbox-sdk.min.js"
    ></script>
    <script
      type="text/javascript"
      src="%PUBLIC_URL%/lib/Rangy/rangy-core.js"
    ></script>
    <script
      type="text/javascript"
      src="%PUBLIC_URL%/lib/Rangy/rangy-serializer.js"
    ></script>
    <script
      type="text/javascript"
      src="%PUBLIC_URL%/lib/Rangy/rangy-classapplier.js"
    ></script>
    <script
      type="text/javascript"
      src="%PUBLIC_URL%/lib/Rangy/rangy-highlighter.js"
    ></script>
    <script
      type="text/javascript"
      src="%PUBLIC_URL%/lib/Rangy/rangy-textrange.js"
    ></script>
    <script
      type="text/javascript"
      src="%PUBLIC_URL%/lib/Hammer/hammer.min.js"
    ></script>
    <script
      type="text/javascript"
      src="%PUBLIC_URL%/lib/unrar/unrar.js"
    ></script>
    <script
      type="text/javascript"
      src="%PUBLIC_URL%/lib/djvu/djvu.min.js"
    ></script>
    <script
      type="text/javascript"
      src="%PUBLIC_URL%/lib/djvu/djvu_viewer.js"
    ></script>
    <script
      type="text/javascript"
      src="%PUBLIC_URL%/lib/mammoth/mammoth.browser.min.js"
    ></script>
  </body>
</html>
